Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation #33

Merged
merged 7 commits into from
Dec 9, 2024
Merged

Compilation #33

merged 7 commits into from
Dec 9, 2024

Conversation

cmacdonald
Copy link
Collaborator

This adds PyTerrier 0.12 compilation support to Pyterrier_DR

Copy link
Collaborator

@seanmacavaney seanmacavaney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd lean towards removing it for faiss, flatnav, scann, and voyager for now, unless we're able to validate their behaviors WRT changing num_results.

It can also be added to gar and ladr -- those are safe :)

@@ -25,6 +25,12 @@ def __init__(self, flex_index, faiss_index, n_probe=None, ef_search=None, search
self.drop_query_vec = drop_query_vec
self.num_results = num_results

def fuse_rank_cutoff(self, k):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not certain that some of the ANN retrievers should get the fuse, since some implementations change the results can change based on num_results.

@cmacdonald
Copy link
Collaborator Author

feedback addressed; I used return None to short circuit faiss, flatnav, scann, and voyager

@seanmacavaney seanmacavaney merged commit 74a4e92 into main Dec 9, 2024
3 checks passed
@seanmacavaney
Copy link
Collaborator

Great, thanks!

@seanmacavaney seanmacavaney deleted the compile branch December 9, 2024 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants